<link rel="stylesheet" type="text/css" href="<?= base_url(); ?>assets/css/admin/stickytooltip.css" />
<script type="text/javascript" src="<?= base_url(); ?>assets/js/admin/stickytooltip.js"></script>
<div class="grid_7">

    <div class="box">
        <h2>
            <a href="#" id="toggle-tables">Review Approval</a>
        </h2>

        <fieldset> 
            <legend>Review Approval</legend>
            <?php foreach ($review as $review) : ?>
                <div class="field" style="margin-bottom: 20px" >

                    <span style="float:left; width:100px" ><?= $review->posted_on; ?></span>
                    <span style="float:left; width:300px; margin-right:5px"><?= $this->management_model->get_version('CAR', $review->version)->version; ?> </span>

                    <span style="float:left; width:100px;margin-right:5px">
                        <?php for ($i = 1; $i <= $review->value; $i++) { ?>
                            <img src="<?= base_url(); ?>./assets/images/review.gif"/>
                        <?php } ?>
                    </span>
                    <span style="float:right;">
                        <?php
                        if ($review->status == 1) {
                            ?>
                            <a href="<?= base_url(); ?>admin/approval/active_review/<?= $review->id; ?>"  onclick="return confirm('Are you sure you want to Active ?')"> Active Now</a> | 
                        <?php } ?>
                        <a href="<?= base_url(); ?>admin/approval/delete_review/<?= $review->id; ?>"  onclick="return confirm('Delete Review ?')"> Delete</a>
                    </span>
                </div>
                <div class="clear"></div>
            <?php endforeach; ?>
        </fieldset>    
        <div class="pagination" align="left"> <?php echo $this->pagination->create_links(); ?>  </div>
    </div>
</div>